import request from "../utils/request";

export function getClassificationByCondition(query){
    return request({
        url:"/classification/getByCondition",
        method:"get",
        params:query
    });
}

export function editClassification(data){
    return request({
        url:"/classification/editClassification",
        method:"post",
        data:data
    })
}

//添加分类
export function addClassification(data){
    return request({
        url:"/train/addClass",
        method:"post",
        data:data
    })
}

//获取所有的分类
export function getAll(){
    return request({
        url:"classification/getAll",
        method:"get"
    })
}

export function getClassificationNumber(){
    return request({
        url:"/history/distinguishNumber",
        method:"get"
    })
}

export  function distinguishImg(query){
    return request({
        url:"/classification/distinguish",
        method:"get",
        params:query
    })
}
